package cn.cau.epidemicsurveysystem.service.impl;

import cn.cau.epidemicsurveysystem.bean.PatientInfoBean;
import cn.cau.epidemicsurveysystem.dao.PatientInfoRepository;
import cn.cau.epidemicsurveysystem.service.PatientInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @projectName: gp2022
 * @package: cn.cau.epidemicsurveysystem.service.impl
 * @className: PatientInfoServiceImpl
 * @author: zfy
 * @description: TODO
 * @date: 2022/3/3 0003 15:57
 * @version: 1.0
 */
@Service
public class PatientInfoServiceImpl implements PatientInfoService {

    @Autowired
    PatientInfoRepository patientInfoRepository;

    @Override
    public PatientInfoBean save(PatientInfoBean patientInfoBean) {
        return patientInfoRepository.save(patientInfoBean);
    }

    @Override
    public PatientInfoBean findPatientInfoBeanByPatientIdCard(String patientIdCard) {
        return patientInfoRepository.findPatientInfoBeanByPatientIdCard(patientIdCard);
    }
}
